<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>使用drop-shadow配合clip-path生成规则阴影</title>

  <style>
    .btn-wrap {
      margin: 100px;
      filter: drop-shadow(2px 4px 3px rgba(50, 50, 0, 0.5));
    }

    .btn {
      width: 200px;
      height: 64px;
      text-align: center;
      line-height: 64px;
      background: linear-gradient(#f5e5bf, #fbe8c8, #f5e5bf);
      color: #be9451;
      font-size: 24px;
      clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0 50%);
    }

    .btn-bg {
      width: 100px;
      height: 35px;
      text-align: center;
      line-height: 35px;
      color: #fff;
      margin-left: 100px;
      background: linear-gradient(45deg, #ddda38, deeppink, #9c27b0);
      animation: hueRotate 10s infinite alternate;
    }

    @keyframes hueRotate {
      100% {
        filter: hue-rotate(360deg);
      }
    }
  </style>
</head>

<body>
  <div class="btn-wrap">
    <div class="btn">领取红包</div>
  </div>

  <div class="btn-bg">按钮</div>
</body>

</html>